Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.search.ui.local.configuration.layouts--widgets

This contribution is part of XML component org.nuxeo.search.ui.local.configuration.layouts inside nuxeo-search-ui-9.10.jar /OSGI-INF/search-local-configuration-layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="search_content_views_selection" type="shuttle">
          <labels>
            <label mode="any">
              label.search.local.configuration.content.view.selection.label
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>searchc:allowedContentViews</field>
          </fields>
          <properties mode="any">
            <property name="availableElementsLabel">
              label.search.local.configuration.content.view.selection.available
            </property>
            <property name="selectedElementsLabel">
              label.search.local.configuration.content.view.selection.enable
            </property>
            <property name="sourceItems">
              #{searchUIConfigurationActions.getNotSelectedContentViewHeaders(layoutValue)}
            </property>
            <property name="sourceItemVar">contentViewHeader</property>
            <property name="sourceItemValue">#{contentViewHeader.name}</property>
            <property name="sourceItemLabel">
              #{contentViewHeader.translateTitle ?
              messages[contentViewHeader.title] : contentViewHeader.title}
            </property>
            <property name="sourceItemOrdering">label</property>
            <property name="sourceItemCaseSensitive">true</property>
            <property name="targetItems">
              #{searchUIConfigurationActions.getSelectedContentViewHeaders(layoutValue)}
            </property>
            <property name="targetItemVar">contentViewHeader</property>
            <property name="targetItemValue">#{contentViewHeader.name}</property>
            <property name="targetItemLabel">
              #{contentViewHeader.translateTitle ?
              messages[contentViewHeader.title] : contentViewHeader.title}
            </property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="search_content_views_selection" type="shuttle">
      <labels>
        <label mode="any">
          label.search.local.configuration.content.view.selection.label
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>searchc:allowedContentViews</field>
      </fields>
      <properties mode="any">
        <property name="availableElementsLabel">
          label.search.local.configuration.content.view.selection.available
        </property>
        <property name="selectedElementsLabel">
          label.search.local.configuration.content.view.selection.enable
        </property>
        <property name="sourceItems">
          #{searchUIConfigurationActions.getNotSelectedContentViewHeaders(layoutValue)}
        </property>
        <property name="sourceItemVar">contentViewHeader</property>
        <property name="sourceItemValue">#{contentViewHeader.name}</property>
        <property name="sourceItemLabel">
          #{contentViewHeader.translateTitle ?
          messages[contentViewHeader.title] : contentViewHeader.title}
        </property>
        <property name="sourceItemOrdering">label</property>
        <property name="sourceItemCaseSensitive">true</property>
        <property name="targetItems">
          #{searchUIConfigurationActions.getSelectedContentViewHeaders(layoutValue)}
        </property>
        <property name="targetItemVar">contentViewHeader</property>
        <property name="targetItemValue">#{contentViewHeader.name}</property>
        <property name="targetItemLabel">
          #{contentViewHeader.translateTitle ?
          messages[contentViewHeader.title] : contentViewHeader.title}
        </property>
      </properties>
    </widget>
  </extension>